package com.zhuoshi.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhuoshi.bean.SaleQuery;
import com.zhuoshi.bean.WdHtProject;
import com.zhuoshi.bean.WdHtRoom;
import com.zhuoshi.bean.WdSaleChance;
import com.zhuoshi.mapper.WdHtProjectMapper;
import com.zhuoshi.mapper.WdHtRoomMapper;
import com.zhuoshi.mapper.WdSaleChanceMapper;
import com.zhuoshi.service.WdSaleChanceService;

@Service
public class WdSaleChanceServiceImpl implements WdSaleChanceService {
@Autowired
private WdSaleChanceMapper mapper;
@Autowired
private WdHtProjectMapper projectmapper ;
@Autowired
private WdHtRoomMapper roommapper;
	@Override
	public int deleteByPrimaryKey(String saleChanceId) {
		return mapper.deleteByPrimaryKey(saleChanceId);
	}

	@Override
	public int insert(WdSaleChance record) {
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(WdSaleChance record) {
		return mapper.insertSelective(record);
	}

	@Override
	public WdSaleChance selectByPrimaryKey(String saleChanceId) {
		return mapper.selectByPrimaryKey(saleChanceId);
	}

	@Override
	public int updateByPrimaryKeySelective(WdSaleChance record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(WdSaleChance record) {
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<WdSaleChance> getlist(SaleQuery bean) {
		return mapper.getlist(bean);
	}

	@Override
	public List<WdHtProject> getAllProject() {
		return projectmapper.getAllProject();
	}

	@Override
	public List<WdHtRoom> selectAll() {
		
		return roommapper.selectAll(null);
	}

}
